from appium.webdriver.common.appiumby import AppiumBy
from AppTest.page.base_page import BasePage


class WorkPage(BasePage):

    __BUTTON_APPROVAL = (AppiumBy.XPATH, "//*[@text='审批']")
    __BUTTON_CLOCK = (AppiumBy.XPATH, "//*[@text='打卡']")

    def ToApproval(self):
        self.do_click(self.__BUTTON_APPROVAL)

    def ToClock(self):
        self.do_click(self.__BUTTON_CLOCK)


